package qvanguoobject.test03;

public class CalculationTest {
    public static void main(String[] args) {
        // 创建Calculation类的实例对象
        Calculation calc = new Calculation();

        // 定义两个测试数字
        double num1 = 10;
        double num2 = 5;

        // 调用各个方法并打印结果
        System.out.println(num1 + " + " + num2 + " = " + calc.add(num1, num2));
        System.out.println(num1 + " - " + num2 + " = " + calc.sub(num1, num2));
        System.out.println(num1 + " × " + num2 + " = " + calc.times(num1, num2));
        System.out.println(num1 + " ➗ " + num2 + "=" + calc.div(num1, num2));
    }
}
